package oa.lu.service;

import java.util.List;

import oa.pojo.Customer;
import oa.pojo.Log;
import oa.pojo.mail;
import oa.view.CustomerOrderView;


public class Page {
	private int currentPage;
	private int totalPage;
	public static final int PAGE_SIZE=10;
	
	private List<Log> logdata;
	private List<mail> maildata;
	private List<Customer> cusdata;
	private List<CustomerOrderView> orderdata;
	
	public List<CustomerOrderView> getOrderdata() {
		return orderdata;
	}
	public void setOrderdata(List<CustomerOrderView> orderdata) {
		this.orderdata = orderdata;
	}
	public List<Customer> getCusdata() {
		return cusdata;
	}
	public void setCusdata(List<Customer> viewList) {
		this.cusdata = viewList;
	}
	public int getCurrentPage() {
		return currentPage;
	}
	public void setCurrentPage(int currentPage) {
		this.currentPage = currentPage;
	}
	public int getTotalPage() {
		return totalPage;
	}
	public void setTotalPage(int totalPage) {
		this.totalPage = totalPage;
	}
	public List<Log> getLogdata() {
		return logdata;
	}
	public void setLogdata(List<Log> logdata) {
		this.logdata = logdata;
	}
	public List<mail> getMaildata() {
		return maildata;
	}
	public void setMaildata(List<mail> maildata) {
		this.maildata = maildata;
	}
	public static int getPageSize() {
		return PAGE_SIZE;
	}
	public Page(int currentPage, int totalPage, List<Log> logdata,
			List<mail> maildata) {
		super();
		this.currentPage = currentPage;
		this.totalPage = totalPage;
		this.logdata = logdata;
		this.maildata = maildata;
	}
	public Page() {
		super();
	}
	@Override
	public String toString() {
		return "Page [currentPage=" + currentPage + ", cusdata=" + cusdata
				+ ", logdata=" + logdata + ", maildata=" + maildata
				+ ", orderdata=" + orderdata + ", totalPage=" + totalPage + "]";
	}
	
	


	
	
}